﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("g_guid", Name = "idxguid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_group
{
    [Key]
    public long g_id { get; set; }

    [StringLength(50)]
    public string g_guid { get; set; }

    [StringLength(50)]
    public string g_name { get; set; }

    [StringLength(255)]
    public string g_c_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? g_add_time { get; set; }

    /// <summary>
    /// 0正常，1禁用
    /// </summary>
    public int? g_status { get; set; }
}
